package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 系统用户对象 sys_user
 * 
 * @author ruoyi
 * @date 2021-06-24
 */
public class SysUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonProperty(value = "value")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    @JsonProperty(value = "label")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 家庭住址 */
    @Excel(name = "家庭住址")
    private String address;

    /** 传真 */
    @Excel(name = "传真")
    private String fax;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 座机号 */
    @Excel(name = "座机号")
    private String landlineNumber;

    /** 状态  0：禁用   1：正常 */
    @Excel(name = "状态  0：禁用   1：正常")
    private Integer status;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 盐 */
    @Excel(name = "盐")
    private String salt;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactMember;

    /** 公寓运营商类型 1分散式 2 集中式 */
    @Excel(name = "公寓运营商类型 1分散式 2 集中式")
    private Integer apartmentOperatorType;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String companyName;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** $column.columnComment */
    @Excel(name = "省")
    private String city;

    /** 县 */
    @Excel(name = "县")
    private String country;

    /** $column.columnComment */
    @Excel(name = "县")
    private Long addUserid;

    /** 是否删除  -1：已删除  0：正常 */
    @Excel(name = "是否删除  -1：已删除  0：正常")
    private Integer delFlag;

    /** 审核状态 1审核通过 2 审核不通 3 待审核 4未完善企业信息 */
    @Excel(name = "审核状态 1审核通过 2 审核不通 3 待审核 4未完善企业信息")
    private Integer approvalFlag;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setFax(String fax) 
    {
        this.fax = fax;
    }

    public String getFax() 
    {
        return fax;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setLandlineNumber(String landlineNumber) 
    {
        this.landlineNumber = landlineNumber;
    }

    public String getLandlineNumber() 
    {
        return landlineNumber;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setSalt(String salt) 
    {
        this.salt = salt;
    }

    public String getSalt() 
    {
        return salt;
    }
    public void setContactMember(String contactMember) 
    {
        this.contactMember = contactMember;
    }

    public String getContactMember() 
    {
        return contactMember;
    }
    public void setApartmentOperatorType(Integer apartmentOperatorType) 
    {
        this.apartmentOperatorType = apartmentOperatorType;
    }

    public Integer getApartmentOperatorType() 
    {
        return apartmentOperatorType;
    }
    public void setCompanyName(String companyName) 
    {
        this.companyName = companyName;
    }

    public String getCompanyName() 
    {
        return companyName;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }
    public void setAddUserid(Long addUserid) 
    {
        this.addUserid = addUserid;
    }

    public Long getAddUserid() 
    {
        return addUserid;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setApprovalFlag(Integer approvalFlag) 
    {
        this.approvalFlag = approvalFlag;
    }

    public Integer getApprovalFlag() 
    {
        return approvalFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("email", getEmail())
            .append("address", getAddress())
            .append("fax", getFax())
            .append("mobile", getMobile())
            .append("landlineNumber", getLandlineNumber())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("deptId", getDeptId())
            .append("createTime", getCreateTime())
            .append("salt", getSalt())
            .append("contactMember", getContactMember())
            .append("apartmentOperatorType", getApartmentOperatorType())
            .append("companyName", getCompanyName())
            .append("province", getProvince())
            .append("city", getCity())
            .append("country", getCountry())
            .append("addUserid", getAddUserid())
            .append("delFlag", getDelFlag())
            .append("approvalFlag", getApprovalFlag())
            .toString();
    }
}
